public class BooleanTest{
	public static void main(String[] args) {
		//声明一个boolean类型并初始化
		boolean b1 = true;
		System.out.println("b1 = " + b1);

		b1 = false;
		System.out.println("b1 = " + b1);


		// b1 = 1;		//错误: 不兼容的类型: int无法转换为boolean,boolean类型只有true/false
		System.out.println("b1 = " + b1);

	}
}